package Pattern.FactoryPattern.dynamic.impl;

import Pattern.FactoryPattern.dynamic.BuyHouse;

/**
 * @author:MJS
 * @create: 2023-02-02-15:32
 * @description:
 */
public class BuyHouseProxy implements BuyHouse {
    private BuyHouse buyHouse;

    public BuyHouseProxy(BuyHouse buyHouse) {
        this.buyHouse = buyHouse;
    }

    @Override
    public void buyHouse() {
        System.out.println("买房前准备");
        buyHouse.buyHouse();
        System.out.println("买房后装修");
    }
}
